<?php
abstract class Dig_Navigation_Page_Abstract extends Zend_Navigation_Page_Uri
{
    protected $_module = 'digitalus';
    protected $_controller = 'page';
    protected $_action = 'index';
    public function getRoute ()
    {
        $route = array('module' => $this->_module , 'controller' => $this->_controller , 'action' => $this->_action);
        return array_merge($route, $this->getParams(), $this->getCustomProperties());
    }
    /**
     * this method returns the request parameters to render 
     * a dynamic page
     *
     * @return array
     */
    public function getParams ()
    {
        $params = array('page_guid' => $this->getGuid() , 'uri' => $this->getUri());
        return $params;
    }
    public function getGuid ()
    {
        return md5($this->getUri());
    }
    public function getTemplate ()
    {
        $properties = $this->getCustomProperties();
        $template = array();
        $template['template'] = isset($properties['template']) ? $properties['template'] : false;
        $template['skin'] = isset($properties['skin']) ? $properties['skin'] : false;
        $template['scope'] = isset($properties['scope']) ? $properties['scope'] : false;
        return $template;
    }
}
?>